package com.demohomework.homeworkdemo.service;

import com.demohomework.homeworkdemo.pojo.Class;

import java.util.List;

public interface ClassService {
    void add(Class cls);

    List<Class> list();

    Class findId(Integer id);

    void update(Class cls);

    void delete(Class cls);

    List<Class> findByStudentId(Integer stuId);

    List<Class> findByCourseId(Integer courseId);

    void deleteByStudentIdAndCourseId(Integer stuId, Integer couId);
}
